-- GENERATED SPELL FOR [Pridewing Skyhunter] --


function spell0_4013(pUnit, Event) --@Poison,n/a--
pUnit:FullCastSpellOnTarget(744,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_4013', 30000, 1)
end

function spell1_4013(pUnit, Event) --@Swoop,n/a--
pUnit:FullCastSpellOnTarget(5708,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_4013', 2257, 1)
end

function Sorts_4013(pUnit, Event)
local choix_sorts_4013 = math.random(0, 1)
if choix_sorts_4013 == 0 then
pUnit:RegisterEvent('spell0_4013', 1, 1)
end
if choix_sorts_4013 == 1 then
pUnit:RegisterEvent('spell1_4013', 1, 1)
end
end

function mob4013_Action(pUnit, Event)
pUnit:RegisterEvent('Sorts_4013', math.random(1500, 3000), 1)
end

function mob4013_Leave(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob4013_Kill(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob4013_Die(pUnit, Event)
pUnit:RemoveEvents();
end

RegisterUnitEvent(4013, 1, 'mob4013_Action')
RegisterUnitEvent(4013, 2, 'mob4013_Leave')
RegisterUnitEvent(4013, 3, 'mob4013_Kill')
RegisterUnitEvent(4013, 4, 'mob4013_Die')
